import request from '@/api/request'

export function pageList (params) {
    return request({
      url: `/userFile`,
      method: 'get',
      params
    })
}

export function download (params) {
  return request({
    url: `/userFile/download`,
    method: 'get',
    params,
    responseType: 'blob'
  })
}

export function upload (data) {
    return request({
      url: `/userFile/addUserFile`,
      method: 'post',
      data: data,
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    })
}

export function uploadCeleu (data) {
  return request({
    url: `/userFile/uploadCeleu`,
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}